export default function (http) {
  return {
    async getInfo(id) {
      return await http.get(`/enterprise/${id}`)
    },
    async getList(data) {
      return await http.get('/enterprise/list', {
        params: {
          ...data,
        },
      })
    },
    async create(data) {
      return await http.post('/enterprise', data)
    },
    async clientList(query) {
      return await http.get('/client/list', {
        params: query,
      })
    },
  }
}
